package com.dayuanit.pay.dao;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.dayuanit.pay.domain.PayOrder;

public interface PayOrderDao {
	
	int addPayOrder(PayOrder payOrder);
	
	PayOrder getPayOrderById(@Param("payId") Integer payId);
	
	int updatePayStatus(@Param("payId")Integer payId, @Param("newStatus")Integer newStatus, @Param("oldStatus")Integer oldStatus);
	
	PayOrder getPayOrderByBizId(@Param("bizId")String bizId, @Param("userId")Integer userId);
	
	List<PayOrder> listUnPayOrder(@Param("startTime")Date startTime, @Param("endTime")Date endTime, @Param("off")int off, @Param("preNum")int preNum);
}
